package designerMode.enventMode;

public class Main {
    public static void main(String[] args) {
        EventSource eventSource = new EventSource();
        EventListener otherEventListener = new OtherEventListenerImpl();
        EventListener simpleEventListener = new SimpleEventListenerImpl();
        Event event1 = new Event();
        event1.setType(1);
        Event event2 = new Event();
        event2.setType(2);
        eventSource.register(otherEventListener);
        eventSource.register(simpleEventListener);
        eventSource.publishEvent(event1);
    }
}
